var initSoLControl = function() {
	$('a').attr('href','javascript:void(0)');
	$('a').linkbutton({plain:true});
};

var SUBMIT = function(form,method,url,btn,dg,onsubmit,onsuccess) {
	function def_submit() {};
	function def_success(data) {
		var ret = eval('(' + data + ')');
		if (ret && ret.resultSuccess)
			dg.datagrid('reload');
		else
			$.messager.alert('ERROR',ret.resultErrMsg);
	};
	
	form.find('#method').val(method);
	form.form('submit',{
		url : url,
		onSubmit : def_submit,
		success : def_success
	});

};